package com.soft.collateral.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@ApiModel("出入库记录表")
@TableName("storage_withdraw_record")
@NoArgsConstructor
@AllArgsConstructor
public class StorageWithdrawRecord {
    @TableId(value = "record_id", type = IdType.AUTO)
    @ApiModelProperty("记录ID")
    private Integer recordId;

    @TableField("collateral_id")
    @ApiModelProperty("押品ID")
    private Integer collateralId;

    @TableField("record_type")
    @ApiModelProperty("记录类型(1:入库,2:出库)")
    private Integer recordType;

    @TableField("related_apply_id")
    @ApiModelProperty("关联申请ID")
    private Integer relatedApplyId;

    @TableField("operation_time")
    @ApiModelProperty("操作时间")
    private LocalDateTime operationTime;

    @TableField("operator")
    @ApiModelProperty("操作人")
    private String operator;

    @TableField("current_status")
    @ApiModelProperty("操作后状态")
    private Integer currentStatus;

    @TableField(exist = false)
    @ApiModelProperty("关联的押品信息")
    private Collateral collateral;
}